package com.AAA.controller.mht;

import com.AAA.entity.LayData;
import com.AAA.entity.MyPage;
import com.AAA.entity.mht.MhtToolVo;
import com.AAA.service.mht.ITmhtTongJiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("tmhttongji")
public class TmhtTongJiController {
    @Autowired
    private ITmhtTongJiService service;

    @RequestMapping("queryall")
    public LayData queryall(MyPage myPage, MhtToolVo mhtToolVo){
        return new LayData(service.queryall(myPage,mhtToolVo));
    }
    @RequestMapping("getnum")
    public LayData getNum(){
        return new LayData(service.getNum());
    }
}
